import React, { Component } from 'react';
import { Form, Button } from 'antd';
import succeed from '../../../assets/Succeed.png';

class RegisterResult extends Component {
  constructor(props) {
    super(props);
    this.state = {};
  }

  componentDidMount() {}

  componentWillUnmount() {}

  render() {
    return (
      <div className={'LRCss'}>
        <img src={succeed} alt="" />
        <div className={'resText'}>账户注册成功！</div>
        <p>为确保有效的使用软件服务，请立即创建或加入企业</p>
        <div className={'footerBtn'}>
          <Button
            type="primary"
            onClick={() => {
              this.props.history.push(`/users/setUpCompany/index?step=2`);
            }}
          >
            创建企业
          </Button>
          <span />
          <Button
            onClick={() => {
              this.props.history.push(`/users/setUpCompany/index?step=3`);
            }}
          >
            加入企业
          </Button>
        </div>
      </div>
    );
  }
}

export default RegisterResult;
